home *** CD-ROM | disk | FTP | other *** search
Null Bytes Alternating | 1997-01-09 | 3.1 KB | 46 lines |
- '++LotusScript Development Environment:2:5:(Options):0:66
-
- '++LotusScript Development Environment:2:5:(Forward):0:1
- Declare Sub Switchto(Source As Form, View As VIEW)
-
- '++LotusScript Development Environment:2:5:(Declarations):0:2
-
- '++LotusScript Development Environment:2:2:BindEvents:1:129
- Private Sub BindEvents(Byval Objectname_ As String)
- Static Source As FORM
- Set Source = Bind(Objectname_)
- On Event Switchto From Source Call Switchto
- End Sub
-
- '++LotusScript Development Environment:2:2:Switchto:1:12
- Sub Switchto(Source As Form, View As VIEW)
- ' Switchto event for the Room Setup view
- ' Retrieves the current list of rooms, populates the view with the
- ' room list, and sets up the boxes and buttons in the view.
- ' The view is set to appear as a dialog box.
-
- Dim checkValue As Integer ' Stores the return value from
- ' assigning a list to a list box
-
- ' Retrieve the current list of rooms from the rooms database.
- Call fillRoomsArray()
-
- ' Fill an existing list box with the list of existing rooms
- checkValue = source.body.lbxRooms.setlist(rooms)
-
- ' Set the list box so that none of the items in the list is selected.
- source.body.lbxRooms.text = ""
-
- ' Clear the field box of any leftover text
- source.body.fbxRoomName.text = ""
-
- ' Set the Done, Add, and Remove buttons so that they are disabled
- source.body.btnDone.enabled = False
- source.body.btnAdd.enabled = False
- source.body.btnRemove.enabled = False
-
- ' Clear the list of deleted rooms
- Redim deletedRooms(0)
- deletedRooms(0) = ""
-
- End Sub ' Switchto event for the Room Setup view